<%--
  Created by IntelliJ IDEA.
  User: 云哥
  Date: 2023/5/30
  Time: 11:57
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>删除图书类型</title>
</head>
<body>
<button id="btnDel">删除图书类型</button>
<script src="js/jquery-1.12.4.js"></script>
<script>
    $(function () {
        $('#btnDel').click(()=>{
            $.ajax({
                url:'DeleteCategory',
                type:'POST',
                data:{id:25},
                dataType:'JSON',
                success:function (data) {
                    console.log(data)
                    alert(data.code+','+data.msg);
                },error:function () {
                    alert('网络错误！！！');
                }
            })
        })
    });
</script>
</body>
</html>
